/*!
 * Ext JS Library 3.2.1
 * Copyright(c) 2006-2010 Ext JS, Inc.
 * licensing@extjs.com
 * http://www.extjs.com/license
 */

Ext.ux.CodeEditor = Ext.extend(Ext.BoxComponent, {
			autoEl	: {
				tag	: 'textarea',
				cls	: 'ux-codeEditor'
			},

			setCode	: function(code) {
				this.el.dom.value = code;
			},

			getCode	: function() {
				return this.el.dom.value;
			}
		});

Ext.reg('codeEditor', Ext.ux.CodeEditor);